#!/bin/bash
for _ip in $(kubectl get node|grep -v master|grep -v admin|grep -v NAME|awk '{print $1}')
do
        echo ${_ip}"执行命令结果"
        timeout 1 telnet ${_ip} $1
        echo -e "\n"
done
